//
//  HideNavigationBarAppDelegate.m
//  HideNavigationBar
//
//  Created by Naoki TSUTSUI on 10/02/05.
//  Copyright iphoneworld.jp 2010. All rights reserved.
//

#import "HideNavigationBarAppDelegate.h"
#import "RootViewController.h"


@implementation HideNavigationBarAppDelegate

@synthesize window;
@synthesize navigationController;


#pragma mark -
#pragma mark Application lifecycle

- (void)applicationDidFinishLaunching:(UIApplication *)application {    
    
  // Override point for customization after app launch

	[window addSubview:[navigationController view]];
  [window makeKeyAndVisible];
}

/*
- ( void ) applicationDidFinishLaunching:( UIApplication *) application { 
   // ウィンドウの生成
   window = [[ UIWindow alloc ] initWithFrame:[[ UIScreen mainScreen ] bounds ]];
   // ビューコントローラの生成
   viewController = [[ UIViewController alloc ] initWithNibName: nil bundle: nil ];
   // ナビゲーションコントローラの生成とビューコントローラの追加
   navigationController = [[ UINavigationController alloc ] initWithRootViewController: viewController ];
   // ウィンドウの子にナビゲーションバーを追加
   [ window addSubview: navigationController.view ];
   // ナビゲーションバーを非表示にする
   [ navigationController setNavigationBarHidden: YES animated: NO ];
   [ window makeKeyAndVisible ];
}
*/



- (void)applicationWillTerminate:(UIApplication *)application {
	// Save data if appropriate
}


#pragma mark -
#pragma mark Memory management

- (void)dealloc {
	[navigationController release];
	[window release];
	[super dealloc];
}


@end

